package creation.builder.common;

/**
 * 导演类
 *
 * @author wangjinqiang
 * @date 2019-08-05
 */
public class Director {
    private Builder builder = new ConcreteProduct();

    /**
     * 构建不同的产品
     *
     * @return
     */
    public Product getAProduct() {
        builder.setPart();
        return builder.buildProduct();
    }
}
